package zug;

public class TrainTest {
	public static void main(String[] args) {
		Train tr1 = new Train(new Locomotive("Big Chief", 1000, 23));
		Train tr2 = new Train(new Locomotive("Steel House", 5409, 21));
		tr1.add(new Car(80, 12));
		tr1.add(new Car(75, 15));
		tr1.add(new Car(100, 20));
		tr1.print();
		tr1.removeFirst();
		tr1.print();
		tr2.add(new Car(60, 13));
		tr2.add(new Car(80, 18));
		tr2.print();
		tr1.relink(tr2);
		tr2.print();
		tr1.print();
	}
}
